package org.icnmasjid.member.model;
// Generated Mar 25, 2010 1:25:01 AM by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.text.ParseException;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="school_registration"
 *     
 */

public class SchoolRegistration extends org.icnmasjid.member.model.BaseObject implements java.io.Serializable {


	private static String[] dateFormats = {"MM/dd/yyyy"};
    // Fields    

    private Integer id;
    private String pfname;
    private String plname;
    private String pemail;
    private String phomephone;
    private String pmphone;
    private String sfname;
    private String slname;
    private String semail;
    private String smphone;
    private String ecfname;
    private String eclname;
    private String ecphone;
    private String addr1;
    private String addr2;
    private String city;
    private String zip;
    private String kid1Fname;
    private String kid1Lname;    
    private String kid1Dob;
    private String kid1Grade;
    private String kid1Sex;
    private String kid2Fname;
    private String kid2Lname;
    private String kid2Dob;
    private String kid2Grade;
    private String kid2Sex;
    private String kid3Fname;
    private String kid3Lname;
    private String kid3Dob;
    private String kid3Grade;
    private String kid3Sex;
    private String kid4Fname;
    private String kid4Lname;
    private String kid4Dob;
    private String kid4Grade;
    private String kid4Sex;
    private String kid5Fname;
    private String kid5Lname;
    private String kid5Dob;
    private String kid5Grade;
    private String kid5Sex;
    
    private String kid1ShirtSize;
    private String kid2ShirtSize;
    private String kid3ShirtSize;
    private String kid4ShirtSize;
    private String kid5ShirtSize;
    
    private String comments;
    private String allergies;
    private Boolean processed = Boolean.FALSE;
    
    // Constructors
	/** default constructor */
    public SchoolRegistration() {
    }
   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="id"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="pfname"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getPfname() {
        return this.pfname;
    }
    
    public void setPfname(String pfname) {
        this.pfname = pfname;
    }
    /**       
     *      *            @hibernate.property
     *             column="plname"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getPlname() {
        return this.plname;
    }
    
    public void setPlname(String plname) {
        this.plname = plname;
    }
    /**       
     *      *            @hibernate.property
     *             column="pemail"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getPemail() {
        return this.pemail;
    }
    
    public void setPemail(String pemail) {
        this.pemail = pemail;
    }
    /**       
     *      *            @hibernate.property
     *             column="phomephone"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getPhomephone() {
        return this.phomephone;
    }
    
    public void setPhomephone(String phomephone) {
        this.phomephone = phomephone;
    }
    /**       
     *      *            @hibernate.property
     *             column="pmphone"
     *             length="50"
     *         
     */

    public String getPmphone() {
        return this.pmphone;
    }
    
    public void setPmphone(String pmphone) {
        this.pmphone = pmphone;
    }
    /**       
     *      *            @hibernate.property
     *             column="sfname"
     *             length="50"
     *         
     */

    public String getSfname() {
        return this.sfname;
    }
    
    public void setSfname(String sfname) {
        this.sfname = sfname;
    }
    /**       
     *      *            @hibernate.property
     *             column="slname"
     *             length="50"
     *         
     */

    public String getSlname() {
        return this.slname;
    }
    
    public void setSlname(String slname) {
        this.slname = slname;
    }
    /**       
     *      *            @hibernate.property
     *             column="semail"
     *             length="50"
     *         
     */

    public String getSemail() {
        return this.semail;
    }
    
    public void setSemail(String semail) {
        this.semail = semail;
    }
    /**       
     *      *            @hibernate.property
     *             column="smphone"
     *             length="50"
     *         
     */

    public String getSmphone() {
        return this.smphone;
    }
    
    public void setSmphone(String smphone) {
        this.smphone = smphone;
    }

    /**       
     *      *            @hibernate.property
     *             column="ecfname"
     *             length="50"
     *         
     */
    public String getEcfname() {
		return ecfname;
	}

	public void setEcfname(String ecfname) {
		this.ecfname = ecfname;
	}
	
    /**       
     *      *            @hibernate.property
     *             column="eclname"
     *             length="50"
     *         
     */

	public String getEclname() {
		return eclname;
	}

	public void setEclname(String eclname) {
		this.eclname = eclname;
	}
	
    /**       
     *      *            @hibernate.property
     *             column="ecphone"
     *             length="50"
     *         
     */

	public String getEcphone() {
		return ecphone;
	}

	public void setEcphone(String ecphone) {
		this.ecphone = ecphone;
	}

	/**       
     *      *            @hibernate.property
     *             column="addr1"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getAddr1() {
        return this.addr1;
    }
    
    public void setAddr1(String addr1) {
        this.addr1 = addr1;
    }
    /**       
     *      *            @hibernate.property
     *             column="addr2"
     *             length="50"
     *         
     */

    public String getAddr2() {
        return this.addr2;
    }
    
    public void setAddr2(String addr2) {
        this.addr2 = addr2;
    }
    /**       
     *      *            @hibernate.property
     *             column="city"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getCity() {
        return this.city;
    }
    
    public void setCity(String city) {
        this.city = city;
    }
    /**       
     *      *            @hibernate.property
     *             column="zip"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getZip() {
        return this.zip;
    }
    
    public void setZip(String zip) {
        this.zip = zip;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid1_fname"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getKid1Fname() {
        return this.kid1Fname;
    }
    
    public void setKid1Fname(String kid1Fname) {
        this.kid1Fname = kid1Fname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid1_lname"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getKid1Lname() {
        return this.kid1Lname;
    }
    
    public void setKid1Lname(String kid1Lname) {
        this.kid1Lname = kid1Lname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid1_dob"
     *             length="10"
     *             not-null="true"
     *         
     */

    public String getKid1Dob() {
        return this.kid1Dob;
    }
    
    public void setKid1Dob(String kid1Dob) {
        this.kid1Dob = kid1Dob;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid1_grade"
     *             length="50"
     *             not-null="true"
     *         
     */

    public String getKid1Grade() {
        return this.kid1Grade;
    }
    
    public void setKid1Grade(String kid1Grade) {
        this.kid1Grade = kid1Grade;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid1_sex"
     *             length="1"
     *             not-null="true"
     *         
     */

    public String getKid1Sex() {
        return this.kid1Sex;
    }
    
    public void setKid1Sex(String kid1Sex) {
        this.kid1Sex = kid1Sex;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid2_fname"
     *             length="50"
     *         
     */

    public String getKid2Fname() {
        return this.kid2Fname;
    }
    
    public void setKid2Fname(String kid2Fname) {
        this.kid2Fname = kid2Fname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid2_lname"
     *             length="50"
     *         
     */

    public String getKid2Lname() {
        return this.kid2Lname;
    }
    
    public void setKid2Lname(String kid2Lname) {
        this.kid2Lname = kid2Lname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid2_dob"
     *             length="10"
     *         
     */

    public String getKid2Dob() {
        return this.kid2Dob;
    }
    
    public void setKid2Dob(String kid2Dob) {
        this.kid2Dob = kid2Dob;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid2_grade"
     *             length="50"
     *         
     */

    public String getKid2Grade() {
        return this.kid2Grade;
    }
    
    public void setKid2Grade(String kid2Grade) {
        this.kid2Grade = kid2Grade;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid2_sex"
     *             length="1"
     *         
     */

    public String getKid2Sex() {
        return this.kid2Sex;
    }
    
    public void setKid2Sex(String kid2Sex) {
        this.kid2Sex = kid2Sex;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid3_fname"
     *             length="50"
     *         
     */

    public String getKid3Fname() {
        return this.kid3Fname;
    }
    
    public void setKid3Fname(String kid3Fname) {
        this.kid3Fname = kid3Fname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid3_lname"
     *             length="50"
     *         
     */

    public String getKid3Lname() {
        return this.kid3Lname;
    }
    
    public void setKid3Lname(String kid3Lname) {
        this.kid3Lname = kid3Lname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid3_dob"
     *             length="10"
     *         
     */

    public String getKid3Dob() {
        return this.kid3Dob;
    }
    
    public void setKid3Dob(String kid3Dob) {
        this.kid3Dob = kid3Dob;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid3_grade"
     *             length="50"
     *         
     */

    public String getKid3Grade() {
        return this.kid3Grade;
    }
    
    public void setKid3Grade(String kid3Grade) {
        this.kid3Grade = kid3Grade;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid3_sex"
     *             length="1"
     *         
     */

    public String getKid3Sex() {
        return this.kid3Sex;
    }
    
    public void setKid3Sex(String kid3Sex) {
        this.kid3Sex = kid3Sex;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid4_fname"
     *             length="50"
     *         
     */

    public String getKid4Fname() {
        return this.kid4Fname;
    }
    
    public void setKid4Fname(String kid4Fname) {
        this.kid4Fname = kid4Fname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid4_lname"
     *             length="50"
     *         
     */

    public String getKid4Lname() {
        return this.kid4Lname;
    }
    
    public void setKid4Lname(String kid4Lname) {
        this.kid4Lname = kid4Lname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid4_dob"
     *             length="10"
     *         
     */

    public String getKid4Dob() {
        return this.kid4Dob;
    }
    
    public void setKid4Dob(String kid4Dob) {
        this.kid4Dob = kid4Dob;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid4_grade"
     *             length="50"
     *         
     */

    public String getKid4Grade() {
        return this.kid4Grade;
    }
    
    public void setKid4Grade(String kid4Grade) {
        this.kid4Grade = kid4Grade;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid4_sex"
     *             length="1"
     *         
     */

    public String getKid4Sex() {
        return this.kid4Sex;
    }
    
    public void setKid4Sex(String kid4Sex) {
        this.kid4Sex = kid4Sex;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid5_fname"
     *             length="50"
     *         
     */

    public String getKid5Fname() {
        return this.kid5Fname;
    }
    
    public void setKid5Fname(String kid5Fname) {
        this.kid5Fname = kid5Fname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid5_lname"
     *             length="50"
     *         
     */

    public String getKid5Lname() {
        return this.kid5Lname;
    }
    
    public void setKid5Lname(String kid5Lname) {
        this.kid5Lname = kid5Lname;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid5_dob"
     *             length="10"
     *         
     */

    public String getKid5Dob() {
        return this.kid5Dob;
    }
    
    public void setKid5Dob(String kid5Dob) {
        this.kid5Dob = kid5Dob;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid5_grade"
     *             length="50"
     *         
     */

    public String getKid5Grade() {
        return this.kid5Grade;
    }
    
    public void setKid5Grade(String kid5Grade) {
        this.kid5Grade = kid5Grade;
    }
    /**       
     *      *            @hibernate.property
     *             column="kid5_sex"
     *             length="1"
     *         
     */

    public String getKid5Sex() {
        return this.kid5Sex;
    }
    
    public void setKid5Sex(String kid5Sex) {
        this.kid5Sex = kid5Sex;
    }
   
	/**       
     *      *            @hibernate.property
     *             column="kid1_shirtsize"
     */	
	public String getKid1ShirtSize() {
		return kid1ShirtSize;
	}

	public void setKid1ShirtSize(String kid1ShirtSize) {
		this.kid1ShirtSize = kid1ShirtSize;
	}

	/**       
     *      *            @hibernate.property
     *             column="kid2_shirtsize"
     */	
	public String getKid2ShirtSize() {
		return kid2ShirtSize;
	}

	public void setKid2ShirtSize(String kid2ShirtSize) {
		this.kid2ShirtSize = kid2ShirtSize;
	}

	/**       
     *      *            @hibernate.property
     *             column="kid3_shirtsize"
     */		
	public String getKid3ShirtSize() {
		return kid3ShirtSize;
	}

	public void setKid3ShirtSize(String kid3ShirtSize) {
		this.kid3ShirtSize = kid3ShirtSize;
	}

	/**       
     *      *            @hibernate.property
     *             column="kid4_shirtsize"
     */		
	public String getKid4ShirtSize() {
		return kid4ShirtSize;
	}

	public void setKid4ShirtSize(String kid4ShirtSize) {
		this.kid4ShirtSize = kid4ShirtSize;
	}

	/**       
     *      *            @hibernate.property
     *             column="kid5_shirtsize"
     */		
	public String getKid5ShirtSize() {
		return kid5ShirtSize;
	}

	public void setKid5ShirtSize(String kid5ShirtSize) {
		this.kid5ShirtSize = kid5ShirtSize;
	}

	/**       
     *      *            @hibernate.property
     *             column="comments"
     */		
	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
	
	/**       
     *      *            @hibernate.property
     *             column="allergies"
     */
	public String getAllergies() {
		return allergies;
	}

	public void setAllergies(String allergies) {
		this.allergies = allergies;
	}

	@Override
	public boolean equals(final Object other) {
		if (!(other instanceof SchoolRegistration))
			return false;
		SchoolRegistration castOther = (SchoolRegistration) other;
		return new EqualsBuilder().append(id, castOther.id).append(pfname,
				castOther.pfname).append(plname, castOther.plname).append(
				pemail, castOther.pemail).append(phomephone,
				castOther.phomephone).append(pmphone, castOther.pmphone)
				.append(sfname, castOther.sfname).append(slname,
						castOther.slname).append(semail, castOther.semail)
				.append(smphone, castOther.smphone).append(ecfname,
						castOther.ecfname).append(eclname, castOther.eclname)
				.append(ecphone, castOther.ecphone).append(addr1,
						castOther.addr1).append(addr2, castOther.addr2).append(
						city, castOther.city).append(zip, castOther.zip)
				.append(kid1Fname, castOther.kid1Fname).append(kid1Lname,
						castOther.kid1Lname).append(kid1Dob, castOther.kid1Dob)
				.append(kid1Grade, castOther.kid1Grade).append(kid1Sex,
						castOther.kid1Sex).append(kid2Fname,
						castOther.kid2Fname).append(kid2Lname,
						castOther.kid2Lname).append(kid2Dob, castOther.kid2Dob)
				.append(kid2Grade, castOther.kid2Grade).append(kid2Sex,
						castOther.kid2Sex).append(kid3Fname,
						castOther.kid3Fname).append(kid3Lname,
						castOther.kid3Lname).append(kid3Dob, castOther.kid3Dob)
				.append(kid3Grade, castOther.kid3Grade).append(kid3Sex,
						castOther.kid3Sex).append(kid4Fname,
						castOther.kid4Fname).append(kid4Lname,
						castOther.kid4Lname).append(kid4Dob, castOther.kid4Dob)
				.append(kid4Grade, castOther.kid4Grade).append(kid4Sex,
						castOther.kid4Sex).append(kid5Fname,
						castOther.kid5Fname).append(kid5Lname,
						castOther.kid5Lname).append(kid5Dob, castOther.kid5Dob)
				.append(kid5Grade, castOther.kid5Grade).append(kid5Sex,
						castOther.kid5Sex).append(kid1ShirtSize,
						castOther.kid1ShirtSize).append(kid2ShirtSize,
						castOther.kid2ShirtSize).append(kid3ShirtSize,
						castOther.kid3ShirtSize).append(kid4ShirtSize,
						castOther.kid4ShirtSize).append(kid5ShirtSize,
						castOther.kid5ShirtSize).append(comments,
						castOther.comments).isEquals();
	}

	@Override
	public int hashCode() {
		return new HashCodeBuilder().append(id).append(pfname).append(plname)
				.append(pemail).append(phomephone).append(pmphone).append(
						sfname).append(slname).append(semail).append(smphone)
				.append(ecfname).append(eclname).append(ecphone).append(addr1)
				.append(addr2).append(city).append(zip).append(kid1Fname)
				.append(kid1Lname).append(kid1Dob).append(kid1Grade).append(
						kid1Sex).append(kid2Fname).append(kid2Lname).append(
						kid2Dob).append(kid2Grade).append(kid2Sex).append(
						kid3Fname).append(kid3Lname).append(kid3Dob).append(
						kid3Grade).append(kid3Sex).append(kid4Fname).append(
						kid4Lname).append(kid4Dob).append(kid4Grade).append(
						kid4Sex).append(kid5Fname).append(kid5Lname).append(
						kid5Dob).append(kid5Grade).append(kid5Sex).append(kid1ShirtSize).append(
						kid2ShirtSize).append(kid3ShirtSize).append(
						kid4ShirtSize).append(kid5ShirtSize).append(comments)
				.toHashCode();
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this).append("id", id).append("pfname",
				pfname).append("plname", plname).append("pemail", pemail)
				.append("phomephone", phomephone).append("pmphone", pmphone)
				.append("sfname", sfname).append("slname", slname).append(
						"semail", semail).append("smphone", smphone).append(
						"ecfname", ecfname).append("eclname", eclname).append(
						"ecphone", ecphone).append("addr1", addr1).append(
						"addr2", addr2).append("city", city).append("zip", zip)
				.append("kid1Fname", kid1Fname).append("kid1Lname", kid1Lname)
				.append("kid1Dob", kid1Dob).append("kid1Grade", kid1Grade)
				.append("kid1Sex", kid1Sex).append("kid2Fname", kid2Fname)
				.append("kid2Lname", kid2Lname).append("kid2Dob", kid2Dob)
				.append("kid2Grade", kid2Grade).append("kid2Sex", kid2Sex)
				.append("kid3Fname", kid3Fname).append("kid3Lname", kid3Lname)
				.append("kid3Dob", kid3Dob).append("kid3Grade", kid3Grade)
				.append("kid3Sex", kid3Sex).append("kid4Fname", kid4Fname)
				.append("kid4Lname", kid4Lname).append("kid4Dob", kid4Dob)
				.append("kid4Grade", kid4Grade).append("kid4Sex", kid4Sex)
				.append("kid5Fname", kid5Fname).append("kid5Lname", kid5Lname)
				.append("kid5Dob", kid5Dob).append("kid5Grade", kid5Grade)
				.append("kid5Sex", kid5Sex)
				.append("kid1ShirtSize", kid1ShirtSize).append("kid2ShirtSize",
						kid2ShirtSize).append("kid3ShirtSize", kid3ShirtSize)
				.append("kid4ShirtSize", kid4ShirtSize).append("kid5ShirtSize",
						kid5ShirtSize).append("comments", comments).toString();
	}

	/**
     *	@hibernate.property
     *             column="processed"
     *
     */	
	public Boolean getProcessed() {
		return processed == null ? Boolean.FALSE : processed;
	}

	public void setProcessed(Boolean processed) {
		this.processed = processed;
	}
	
	

}
